<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页3个商品表列表</title>
    <#include "/view/admin/headList.html"/>

    <script type="text/javascript">
        $(function() {
            //初始化
        });
    </script>
</head>
<body>


<div class="table-class">




    <table class="table table-hover table-list table-bordered">
        <thead>
        <tr>
            <td class="table-head-btn">
                <div style="text-align:left;margin-left: 50px;">
                    <@shiro.hasPermission name="5.4.4">
                    <a href="${base}/czjcommodity3/add.do" class="btn btn-primary">新增</a>
                    </@shiro.hasPermission>
                </div>
            </td>
        </tr>

        <tr class="table-head">
            <th>序号</th>
                <th class="label-hidden">主键</th>
                <th>顺序</th>
            <th>商品显示图片</th>
                <th>商家</th>
                <th>商品</th>

            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <#list pagination.list as c>
            <tr>
                <td>${(pagination.pageNo-1)*pagination.pageSize+1+c_index}</td>
                        <td class="label-hidden">${c.id!}</td>
                            <td>${c.orderby!}</td>
                <td>
                    <#if c.picPath??>
                    <img src="${base}${c.picPath!}" height="100px;">
                        <#else>【商品未设置图片】
                </#if>

                </td>
                <td>${c.businessName!}</td>
                        <td>
                            ${c.commodityName!}
                        </td>

                <td>
              <#--  <@shiro.hasPermission name="5.4.1">
                    <a href="${base}/czjcommodity3/detail.do?id=${c.id!}" class="btn btn-primary">详情</a>
                </@shiro.hasPermission>-->
                <@shiro.hasPermission name="5.4.2">   
                    <a href="${base}/czjcommodity3/add.do?id=${c.id!}" class="btn btn-primary">修改</a>
                </@shiro.hasPermission>
                <@shiro.hasPermission name="5.4.3">     
                    <a href="javascript:checkDelete('${base}/czjcommodity3/delete.do?id=${c.id!}')" class="btn btn-primary">删除</a>
                </@shiro.hasPermission>
                </td>
            </tr>


        </#list>






        </tbody>
    </table>


</div>
<script>

    function queryCondition(){
        var href="";
        href+='commodityId=';
        return href;
    }


</script>

</body>
</html>
